package com.pan.design.pattern.behavioral.observer.google.demo;

import com.pan.design.pattern.behavioral.observer.google.Subscribe;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ObserverOne {


    /**
     * 注意 只允许有一个参数
     * @param param
     */
    @Subscribe
    public void observe1(String param){

        log.info("this is ObserverOne observe1 {}",param);

    }

    @Subscribe
    public void observe2(String param){

        log.info("this is ObserverOne observe2 {}",param);

    }

}
